/*
 * Copyright (c)  19-4-25 上午11:15   add by Lanvo
 */

package com.rf.richfitwheel.workflow.entity;

import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.engine.task.Task;


import java.util.Map;

/**

 */
public class TaskVO  {

    public TaskVO(Task task){
        this.setId(task.getId());
        this.setKey(task.getTaskDefinitionKey());
        this.setName(task.getName());
        this.setDescription(task.getDescription());
        this.setAssignee(task.getAssignee());
        this.setFormKey(task.getFormKey());
        this.setProcessId(task.getProcessInstanceId());
        this.setProcessDefinitionId(task.getProcessDefinitionId());
        this.setExecutionId(task.getExecutionId());
        this.setTaskDefinitionKey(task.getTaskDefinitionKey());
    }

    private Map<String,Object> wf_param;
    private String busNo;
    private String id;
    private String name;
    private String key;
    private String description;
    private  String formKey;
    private  String assignee;
    private  String assigneename;
    private String  processId;
    private String  processName;
    private String  processDefinitionId;
    private String  executionId;
    private String  taskDefinitionKey;
    private boolean  isSuspended;
    private boolean  returnSign;
    private String  reason;
    private String  briefReport;
    private String  submitTime;
    private String  startUser;
    private String  detailPage;
    //授权处理的流程中用到：1-一般性代理、2-访问查看
    private String authCatagory;

    public TaskVO() {

    }

    public TaskVO(HistoricTaskInstance task) {
    	this.setId(task.getId());
        this.setKey(task.getTaskDefinitionKey());
        this.setName(task.getName());
        this.setDescription(task.getDescription());
        this.setAssignee(task.getAssignee());
        this.setFormKey(task.getFormKey());
        this.setProcessId(task.getProcessInstanceId());
        this.setProcessDefinitionId(task.getProcessDefinitionId());
        this.setExecutionId(task.getExecutionId());
        this.setTaskDefinitionKey(task.getTaskDefinitionKey());
	}

	public String getSubmitTime() {
        return submitTime;
    }

    public String getDetailPage() {
        return detailPage;
    }

    public void setDetailPage(String detailPage) {
        this.detailPage = detailPage;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    public String getStartUser() {
        return startUser;
    }

    public void setStartUser(String startUser) {
        this.startUser = startUser;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getBriefReport() {
        return briefReport;
    }

    public void setBriefReport(String briefReport) {
        this.briefReport = briefReport;
    }

    public String getAssigneename() {
        return assigneename;
    }

    public void setAssigneename(String assigneename) {
        this.assigneename = assigneename;
    }

    public boolean isReturnSign() {
        return returnSign;
    }

    public void setReturnSign(boolean returnSign) {
        this.returnSign = returnSign;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getBusNo() {
        return busNo;
    }

    public boolean isSuspended() {
        return isSuspended;
    }

    public void setSuspended(boolean suspended) {
        isSuspended = suspended;
    }

    public void setBusNo(String busNo) {
        this.busNo = busNo;
    }

    public String getTaskDefinitionKey() {
        return taskDefinitionKey;
    }

    public void setTaskDefinitionKey(String taskDefinitionKey) {
        this.taskDefinitionKey = taskDefinitionKey;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFormKey() {
        return formKey;
    }

    public void setFormKey(String formKey) {
        this.formKey = formKey;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getExecutionId() {
        return executionId;
    }

    public void setExecutionId(String executionId) {
        this.executionId = executionId;
    }

    public Map<String, Object> getWf_param() {
        return wf_param;
    }

    public void setWf_param(Map<String, Object> wf_param) {
        this.wf_param = wf_param;
    }

	/**
	 * @return authCatagory
	 */
	public String getAuthCatagory() {
		return authCatagory;
	}

	/**
	 * @param authCatagory 要设置的 authCatagory
	 */
	public void setAuthCatagory(String authCatagory) {
		this.authCatagory = authCatagory;
	}
}
